package com.dj.mingkong.admin.biz.repository.database.music;

import com.dj.mingkong.common.infrastructure.base.dto.query.QueryVo;
import com.dj.mingkong.common.infrastructure.base.repository.BaseDatabaseRepository;
import com.dj.mingkong.common.infrastructure.eo.database.music.MusicReviewEo;
import com.dj.mingkong.admin.biz.repository.database.music.mapper.MusicReviewMapper;
import org.springframework.stereotype.Repository;


/**
 * 音乐审核repository
 *
 * @author zenglonghui
 * @date: 2022/10/29 15:50
 */
@Repository
public class MusicReviewRepository extends BaseDatabaseRepository<MusicReviewMapper, MusicReviewEo, QueryVo> {
    public boolean deleteByMusicId(Long musicId) {
        return lambdaUpdate().eq(MusicReviewEo::getMusicId, musicId).remove();
    }
}
